package com.database.service;

import com.database.bean.Historys;
import com.database.mapper.HistorysMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HistorysService {
    final
    HistorysMapper historysMapper;

    public HistorysService(HistorysMapper historysMapper) {
        this.historysMapper = historysMapper;
    }
    public List<Historys> getHistorysByUid(Long uid,String type){
        return historysMapper.getHistorysByUid(uid,type);
    }
}
